<?php

namespace app\common\services;

class ConstantMapServices
{
    public static $static_mapping = [
        0 => '已删除',
        1 => '正常',
    ];

    public static $static_type = [
        1 => 'hongbao',
        2 => 'shiwu',
    ];

    public static $prize_type = [
        'hongbao_1' => 1,
        'hongbao_1.2' => 2,
        'hongbao_1.5' => 3,
        'hongbao_1.6' => 4,
        'hongbao_1.8' => 5,
        'hongbao_12.2' => 6,
        'coupons_' => 7,
    ];

    public static $static_default = -1;

    public static $default_avatar = 'default_avatar';
    public static $default_pwd = '******';
    public static $default_syserror = '系统中忙~~~,请稍后再试';
    public static $default_page_size = 3;

    public static function getRootPath()
    {
        return dirname(\Yii::$app->vendorPath);
    }
}
